package com.CmJava.service;

import com.CmJava.entity.project.ProjectDisplay;
import com.CmJava.entity.project.ProjectModel;
import com.CmJava.entity.ResultEntity;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface ProjectService {
    ResultEntity getTechFilter();

    ResultEntity getProjectDisplay();

    ResultEntity getProjectMysql(String projectId);

    ResultEntity getRedisProject(String key);

    ResultEntity getNewProjectId();

    ResultEntity addProjectRedis(String key,String projectRedisData);

    ResultEntity addImgs(String title, MultipartFile fileImage) throws IOException;

    ResultEntity getModelAndChildNum(String key);

    ResultEntity getThisProject(String key);

    ResultEntity updateThisModle(String key, String modelId, ProjectModel projectModel);

    ResultEntity getThisProjectTech(String projectId);

    ResultEntity updateProjectMysql(ProjectDisplay projectDisplay);

    ResultEntity updateTech(String key, String front, String back);

    ResultEntity addProjectMysql(ProjectDisplay projectDisplay);

    ResultEntity addProjectCommentMysql(String projectId);

    ResultEntity getProjectList();

    void deleteAllImg(String s);

    ResultEntity deleteProjectChildModel(String projectId, int modelIndex, int childIndex);

    ResultEntity deleteProjectModel(String projectId, int i);

    ResultEntity getProjectImg(String projectId);

    ResultEntity backupProject(String projectId);

    ResultEntity<Object> downBackupProject();
}
